import os.path

import yaml


def get_path(filename):
    root_dir = os.path.dirname(os.path.dirname(__file__))
    # print(root_dir)

    # 路径的拼接 os.path.join(根目录，路径)
    targ_dir = os.path.join(root_dir, 'data', filename)
    return targ_dir

def get_log_path():
    root_dir = os.path.dirname(os.path.dirname(__file__))
    # 路径的拼接 os.path.join(根目录，路径)
    targ_dir = os.path.join(root_dir, 'logs')
    return targ_dir

if __name__ == "__main__":
    print((get_path("userCenter.yaml")))
    print(get_log_path())